// 泛型接口的使用，并指定默认泛型
interface Ikun<T = string> {
  name: T;
  age: number;
  slogan: T;
}

const kunkun: Ikun<string> = {
  name: "why",
  age: 18,
  slogan: "hahha",
};

const ikun2: Ikun<number> = {
  name: 1,
  age: 18,
  slogan: 666,
};

const ikun3: Ikun = {
  name: "zs",
  age: 12,
  slogan: "加油",
};

export {};
